<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div  class="infoboxp">
<!--<div class="admin_new_tip">-->
<!--<a href="javascript:;" class="admin_new_tip_close"></a>-->
<!--<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>-->
<!--<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>-->
<!--<div class="admin_new_tip_list_cont">-->
<!--<div class="admin_new_tip_list">该页面展示了网站所有的商品信息，可对商品进行添加，删除操作。</div>-->
<!--<div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>-->
<!--</div>-->
<!--</div>-->

<div class="clear"></div>

<div class="admin_new_search_box"> 
   <form action="index.php" name="myform" method="get" style="float:right;font-size: 14px;">
      <input name="m" value="reward" type="hidden"/>
	<!--<div class="admin_new_search_name">搜索类型：</div>-->

		<!--<div class="admin_Filter_text formselect" did="dctype">-->
        <!--<input type="button" {yun:}if $smarty.get.ctype=='2'{/yun} value="兑换{yun:}$config.integral_pricename{/yun}" {yun:}else{/yun} value="商品名称" {yun:}/if{/yun} class="admin_Filter_but" id="bctype">-->
        <!--<input type="hidden" name="ctype" id="ctype"/>-->
        <!--<div class="admin_Filter_text_box" style="display:none" id="dctype">-->
          <!--<ul>-->
            <!--<li><a href="javascript:void(0)" onClick="formselect('1','ctype','商品名称')">商品名称</a></li>-->
            <!--<li><a href="javascript:void(0)" onClick="formselect('2','ctype','兑换{yun:}$config.integral_pricename{/yun}')">兑换{yun:}$config.integral_pricename{/yun}</a></li>-->
          <!--</ul>-->
        <!--</div>-->
    <!--</div>-->
     <input type="hidden" name="key" value="{yun:}$get_type.key{/yun}"/>
     <a href="index.php?m=reward&c=add&key={yun:}$get_type.key{/yun}" class="admin_new_cz_tj" style="float:left;">+ 添加商品</a>
     <input class="admin_button-red" type="button" name="delsub" value="批量删除" onClick="return really('del[]')"  style="float: left;" />
     <!--<input class="admin_button"  type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/>-->
     <input class="admin_new_cz_tj" type="button" name="delsub" value="导出" onClick="Export();" style="float: left;margin-right: 10px" />

      <input type="text" placeholder="输入你要搜索的关键字" value="{yun:}$smarty.get.keyword{/yun}" name='keyword' class="admin_new_text">
      <input type="submit" name='search'  value="搜索" class="admin_new_bth">
	<!--<a  href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>-->

     </form>
    {yun:}include file="admin/admin_search.htm"{/yun}
  </div>
<div class="clear"></div> 

  <div class="table-list">
    <div class="admin_table_border">
      <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
      <form action="index.php" name="myform" method="get"  id='myform' target="supportiframe" >
        <input type="hidden" name="m" value="reward">
        <input type="hidden" name="c" value="del">
        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
        <table width="100%">
          <thead>
            <tr class="admin_table_top">
              <th width="5%">
                <!--<label for="chkall">-->
                  <!--<input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/>-->
                <!--</label>-->
                <label class="hiddeninputbox">
                  <input type="checkbox" class="hiddeninput" id='chkAll' onclick='CheckAll(this.form)'>
                  <span class="hiddeninput-span"></span>
                </label>
              </th>
              <!--<th> {yun:}if $smarty.get.t=="id" && $smarty.get.order=="asc"{/yun} <a href="{yun:}searchurl order=desc t=id m=reward untype='order,t'{/yun}">编号<img src="images/sanj.jpg"/></a> {yun:}else{/yun} <a href="{yun:}searchurl order=asc t=id m=reward untype='order,t'{/yun}">编号<img src="images/sanj2.jpg"/></a> {yun:}/if{/yun} </th>-->
              <th>序号</th>

              <th align="left">商品名称</th>
              <th>商品ID</th>
              <!--<th>类别</th>-->
              <th>兑换{yun:}$config.integral_pricename{/yun}</th>
              <th>限购数量</th>
              <th>库存</th>
              <th>排序</th>
              <th>状态</th>
              <!--<th>推荐</th>-->
              <th>热门</th>
              <th class="admin_table_th_bg" width="120">操作</th>
            </tr>
          </thead>
          <tbody>         
          {yun:}foreach item=v key=key from=$rows{/yun}
          <tr align="center"{yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
            <td>
              <!--<input type="checkbox" value="{yun:}$v.id{/yun}"  name='del[]' onclick='unselectall()' rel="del_chk" />-->
              <label class="hiddeninputbox">
                <input type="checkbox" class="hiddeninput check_all"  value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" />
                <span class="hiddeninput-span"></span>
              </label>
            </td>
            <td><span>{yun:}$key+1{/yun}</span></td>

            <td align="left">{yun:}$v.name{/yun}</td>
            <td><span>{yun:}$v.id{/yun}</span></td>
            <!--<td>{yun:}$v.classname{/yun}</td>-->
            <td>{yun:}$v.integral{/yun}</td>
            <td>{yun:}if $v.restriction=="0"{/yun}不限{yun:}else{/yun}{yun:}$v.restriction{/yun}{yun:}/if{/yun}</td>
            <td>{yun:}$v.stock{/yun}</td>
            <td>{yun:}$v.sort{/yun}</td>
            <td id="status{yun:}$v.id{/yun}">{yun:}if $v.status=="1"{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=status','{yun:}$v.id{/yun}','0','status');"><img src="../config/ajax_img/doneico.gif"></a>{yun:}else{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=status','{yun:}$v.id{/yun}','1','status');"><img src="../config/ajax_img/errorico.gif"></a>{yun:}/if{/yun}</td>
            <!--<td id="rec{yun:}$v.id{/yun}">{yun:}if $v.rec=="1"{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=rec','{yun:}$v.id{/yun}','0','rec');"><img src="../config/ajax_img/doneico.gif"></a>{yun:}else{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=rec','{yun:}$v.id{/yun}','1','rec');"><img src="../config/ajax_img/errorico.gif"></a>{yun:}/if{/yun}</td>-->
            <td id="hot{yun:}$v.id{/yun}">{yun:}if $v.hot=="1"{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=hot','{yun:}$v.id{/yun}','0','hot');"><img src="../config/ajax_img/doneico.gif"></a>{yun:}elseif  $v.hot=="0"{/yun}<a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=hot','{yun:}$v.id{/yun}','1','hot');"><img src="../config/ajax_img/errorico.gif"></a>{yun:}/if{/yun}</td>
            <td>
              <a href="index.php?m=reward&c=add&id={yun:}$v.id{/yun}&key={yun:}$get_type.key{/yun}" class="admin_text_bth">修改</a>
              <a href="javascript:void(0)"   class="admin_text_bth" onClick="layer_del('确定要删除？', 'index.php?m=reward&c=del&del={yun:}$v.id{/yun}');">删除</a>
            </td>
          </tr>
          {yun:}/foreach{/yun}
          <!--<tr >-->
            <!--&lt;!&ndash;<td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>&ndash;&gt;-->
            <!--&lt;!&ndash;<td colspan="2" ><label for="chkAll2">全选</label>&ndash;&gt;-->
              <!--&lt;!&ndash;&nbsp;&ndash;&gt;-->
              <!--&lt;!&ndash;<input class="admin_button"  type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/></td>&ndash;&gt;-->
            <!--<td colspan="12" class="digg">{yun:}$pagenav{/yun}</td>-->
          <!--</tr>-->
            </tbody>        
        </table>
        <div class="diggbox">
          <div  class="digg">{yun:}$pagenav{/yun}</div>
        </div>
      </form>
    </div>
  </div>
</div>
</div>
<div id="bg" class="admin_bg"></div>
</body>
</html>